import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'mobx-react';
import { HashRouter } from 'react-router-dom';
import stores from './js/stores';
import getRoutes from './js/routes';

export default class App extends React.Component {
    render() {
        return (
            <Provider {...stores}>
                <HashRouter ref={ref => { this.navigator = ref; }}>
                    {getRoutes()}
                </HashRouter>
            </Provider>
        );
    }
}

render(<App />, document.querySelector('#root'));
